package com.study.feignClient.feignFallback;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.study.convention.result.Result;
import com.study.dto.req.ShortLinkPageReqDTO;
import com.study.dto.resp.ShortLinkGroupCountQueryRespDTO;
import com.study.dto.resp.ShortLinkPageRespDTO;
import com.study.feignClient.GroupShortLinkClient;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author canace
 * @version 1.0
 * @description 使用Feign获取短链接分组中短链接的数量 熔断降级处理
 * @date 2024/1/31 21:07
 */

@Component
public class GroupShortLinkFeignFallback implements GroupShortLinkClient {
    @Override
    public Result<List<ShortLinkGroupCountQueryRespDTO>> listGroupShortLinkCount(List<String> requestParam) {
        // 没获取到直接返回空
        return null;
    }

    @Override
    public Result<Page<ShortLinkPageRespDTO>> getPageShortLink(ShortLinkPageReqDTO requestParam) {
        return null;
    }

}
